package com.zhanghuang.springbootstudy01.mapper;

import com.zhanghuang.springbootstudy01.bo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository  // dao层使用的
public interface DepartmentMapper {

    // @Select("sql") 注解版配置
    // 获取所有的部门信息
    List<Department> getDepartments();

    // 通过id获取部门信息
    Department getDepartment(Integer id);

}
